import React, { Component } from 'react'

export default class List extends Component {
    render() {
        let { record } = this.props
        return (
            <>
                <ul>
                    {
                        record.length > 0 && record.map(item => {
                            return (
                                <li key={item.id||item.movieId}
                                >
                                    <div className="image">
                                        <img src={item.img||item.poster} alt="" width="80" height="120" />
                                    </div>
                                    <div className="dce" >
                                        <div className="he">
                                            <h5>{item.nm||item.name}</h5>
                                            <span className="ver">{item.version}</span>
                                        </div>
                                        <p>
                                            点映评分<span className="grade">{item.sc||item.score}</span>
                                        </p>
                                        <p>主演:{item.star}</p>
                                        <p>{item.showInfo}</p>
                                    </div>
                                    <div className="btn">

                                    </div>
                                </li>
                            )
                        })
                    }
                </ul>
            </>
        )
    }
}
